<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<base target="_self">
<script language="javascript">
function insertImg(id,filename){
	if(window.dialogArguments){
		var win = window.dialogArguments;
	}else{
		var win = window.opener;
	}
	win.document.getElementById(id).value=filename;

	window.close();
}

</script>
<body>
<style type="text/css">
.wrap{padding:0;}
</style>
<div class="admin_table">
  <table width="100%" cellspacing="0" cellpadding="0">
    <tr class="tr2">
      <td>文件名</td>
      <td>图片</td>
      <td>插入</td>
    </tr>
<!--
EOT;
foreach($medalimgs as $file){
$addimg="<a style=\"cursor:pointer;\" onclick=\"javascript:insertImg('".$thisid."','".$file[filename]."');\" title=\"使用此图片\">使用此图片</a>";
$have = $file['isused'] ? "<font style=\"color:red\">*</font>":"";
print <<<EOT
-->
    <tr class="tr1 vt">
      <td class="td2">{$have}{$file[filename]}</td>
      <td class="td2"><img src="hack/$hackset/image/{$file[filename]}" ></td>
      <td class="td2">$addimg</td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
</div>
<!--
EOT;
?>-->
